﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="AnalysisCode.aspx.cs" Inherits="TCV_WEB.Admin.Page.AnalysisCode"
     %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="6" border="0" class="tableForm" id="tblManagePartner">
                    <tr>
                        <td colspan="4" align="center" class="formTitle">
                            Analysis Code
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <div id="divError">
                                <asp:Label ID="lbErr" runat="server"></asp:Label>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            &nbsp;
                        </td>
                        <td style="width: 25%; height: 28px;">
                            Analysis Category
                        </td>
                        <td style="width: 20px; height: 28px;">
                            &nbsp;
                        </td>
                        <td style="height: 28px">
                            <telerik:RadComboBox ID="cbbCATEGORY" runat="server" Height="200px" Width="200px"
                                DropDownWidth="350px" HighlightTemplatedItems="true" EnableLoadOnDemand="true"
                                EmptyMessage="Choose a Category" OnItemsRequested="cbbCATEGORY_ItemsRequested"
                                AllowCustomText="True">
                                <HeaderTemplate>
                                    <table style="width: 300px" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="width: 80px;">
                                                Code
                                            </td>
                                            <td style="width: 177px;">
                                                Description
                                            </td>
                                        </tr>
                                    </table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <table style="width: 300px" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="width: 80px;">
                                                <%# DataBinder.Eval(Container, "Text")%>
                                            </td>
                                            <td style="width: 177px;">
                                                <%# DataBinder.Eval(Container, "Attributes['Description']")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="cbbCATEGORY"
                                ErrorMessage="!" CssClass="validator">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                        </td>
                        <td style="width: 25%; height: 28px;">
                            Code
                        </td>
                        <td style="width: 20px; height: 28px;">
                        </td>
                        <td style="height: 28px">
                            <telerik:RadTextBox ID="txtCODE" runat="server" Width="300px" MaxLength="30">
                            </telerik:RadTextBox>
                            <telerik:RadTextBox ID="txtID" runat="server" Visible="False" Width="50px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            &nbsp;
                        </td>
                        <td style="width: 25%; height: 28px;">
                            Description
                        </td>
                        <td style="width: 20px; height: 28px;">
                            &nbsp;
                        </td>
                        <td style="height: 28px">
                            <telerik:RadTextBox ID="txtNAME" runat="server" Width="300px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Look up
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3">
                            <telerik:RadTextBox ID="txtLOOKUP" runat="server" Width="300px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Prohibit Posting
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3">
                            <asp:CheckBox ID="cbPROHB_POST" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Data Access Group
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3">
                            <telerik:RadComboBox ID="cbbDATA_1" runat="server">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Budget Check
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3">
                            <telerik:RadTextBox ID="txtBUDGET_CHECK" runat="server" Width="80px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;
                        </td>
                        <td class="style3">
                            Stop Budget Checking
                        </td>
                        <td class="style4">
                            &nbsp;
                        </td>
                        <td class="style3">
                            <asp:CheckBox ID="cbBUDGET_STOP" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 18px">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
            </td>
        </tr>
    </table>
    <div style="width: 350px; margin: auto">
        <telerik:RadButton ID="btnNew" runat="server" Text="Add New" SplitButtonCssClass=""
            SplitButtonPosition="Right" OnClick="btnNew_Click" Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnSave" runat="server" Text="Save" 
            OnClick="btnSave_Click" Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" 
            OnClick="btnDelete_Click" Width="100px">
        </telerik:RadButton>
    </div>
    <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
        Skin="Office2007" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
        AllowPaging="True" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" ShowGroupPanel="True"
        OnNeedDataSource="dgvList_NeedDataSource">
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
        </HeaderContextMenu>
        <MasterTableView PageSize="20" DataKeyNames="CATEGORY,CODE">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridButtonColumn CommandName="Selected" FilterControlAltText="Filter column column"
                    Text="Edit" UniqueName="column3">
                </telerik:GridButtonColumn>
                <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" UniqueName="column8">
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column1 column" HeaderText="CATEGORY"
                    UniqueName="column1" DataField="CATEGORY">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" HeaderText="CODE"
                    UniqueName="column2" DataField="CODE">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="NAME" FilterControlAltText="Filter column4 column"
                    HeaderText="NAME" UniqueName="column4">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
</asp:Content>
